#ifndef TABLEDIALOG_H
#define TABLEDIALOG_H

#include <QDialog>
#include "TableModel.h"
#include <QGridLayout>
#include <QDialogButtonBox>
#include <QTableView>
#include <QSortFilterProxyModel>


class TableDialog : public QDialog
{
    Q_OBJECT

    QWidget * gridLayoutWidget;
    QGridLayout * gridLayout;
    QDialogButtonBox * buttonBox;
    QTableView * tableView;

    QHeaderView * hdr;
    TableModel * model;
    QSortFilterProxyModel * proxyModel;
    
public:
    explicit TableDialog( QWidget * parent = 0 );
    ~TableDialog();

    void SetModel( TableModel * mdl );
    int Exec();
    
private slots:


};

#endif // TABLEDIALOG_H
